/**
 * meta 可配置参数
 * @param {boolean} icon 页面icon
 * @param {boolean} keepAlive 是否缓存页面
 * @param {string} title 页面标题
 */

export default [
    {
        path: '/login',
        name: 'login',
        component: () => import('@/views/operateList/login/index.vue'),
        meta: {title: '登录页'}
    },
    
    {
        path: '/operate',
        name: 'operate',
        redirect: '/operate/home',
        meta: { title: 'about' },
        component: () => import('@/views/operateList/layout/index.vue'),
        children: [
            {
                path: 'home',
                name: 'home',
                component: () => import('@/views/operateList/home/index.vue'),
                meta: { title: '首页' }
            },
            // 站点管理
            {
                path: 'banner',
                name: 'banner',
                component: () => import('@/views/operateList/siteMng/banner/index.vue'),
                meta: { title: 'banner' }
            },
            // 机构管理
            {
                path: 'institutionAudit',
                name: 'institutionAudit',
                component: () => import('@/views/operateList/institutionMng/institutionAudit/index.vue'),
                meta: { title: '机构审核' }
            },
            {
                path: 'bedAudit',
                name: 'bedAudit',
                component: () => import('@/views/operateList/institutionMng/bedAudit/index.vue'),
                meta: { title: '床位审核' }
            },
            // 会员管理
            {
                path: 'memberList',
                name: 'memberList',
                component: () => import('@/views/operateList/memberMng/memberList/index.vue'),
                meta: { title: '会员列表' }
            },
             // 订单管理
            {
                path: 'orderList',
                name: 'orderList',
                component: () => import('@/views/operateList/orderMng/orderList/index.vue'),
                meta: { title: '预约列表' }
            },
            {
                path: 'checkList',
                name: 'checkList',
                component: () => import('@/views/operateList/orderMng/checkList/index.vue'),
                meta: { title: '入住列表' }
            },
            {
                path: 'changeList',
                name: 'changeList',
                component: () => import('@/views/operateList/orderMng/changeList/index.vue'),
                meta: { title: '变更列表' }
            },
            {
                path: 'retreatList',
                name: 'retreatList',
                component: () => import('@/views/operateList/orderMng/retreatList/index.vue'),
                meta: { title: '退住列表' }
            },
            // 住客管理
            {
                path: 'oldTenant',
                name: 'oldTenant',
                component: () => import('@/views/operateList/tenantMng/oldTenant/index.vue'),
                meta: { title: '老人住客列表' }
            },
            {
                path: 'commonTenant',
                name: 'commonTenant',
                component: () => import('@/views/operateList/tenantMng/commonTenant/index.vue'),
                meta: { title: '普通住客列表' }
            },
            // 系统管理
            {
                path: 'role',
                name: 'role',
                component: () => import('@/views/operateList/systemMng/role/index.vue'),
                meta: { title: '角色' }
            },
            {
                path: 'account',
                name: 'account',
                component: () => import('@/views/operateList/systemMng/account/index.vue'),
                meta: { title: '账号' }
            },
            {
                path: 'log',
                name: 'log',
                component: () => import('@/views/operateList/systemMng/log/index.vue'),
                meta: { title: '操作日志' }
            }
        ]
    },
    {
        path: '/',
        redirect: '/operate/home',
      },    
    {
        path: '*',
        redirect: '/operate/home'
    }
]